bitkeeper revision 1.526.1.1 (3f8fc160axLZxAciQvvwLuO7BW8p0A)
authoriap10@labyrinth.cl.cam.ac.uk <iap10@labyrinth.cl.cam.ac.uk>
Fri, 17 Oct 2003 10:16:00 +0000 (10:16 +0000)
committeriap10@labyrinth.cl.cam.ac.uk <iap10@labyrinth.cl.cam.ac.uk>
Fri, 17 Oct 2003 10:16:00 +0000 (10:16 +0000)
trivial change to xen-clone to enable it to work on old repositories without the xenolinux-sparse link.

tools/misc/xen-clone

index 96da9fe3711a1032d43ae2b267672163b128b4f7..07a918113d6742819ab0e51c49813d63a0961e69 100755 (executable)
@@ -60,7 +60,7 @@ cd ${TOP}
 fi
 
 # identify this version of linux
-LINUX_VER=`/bin/ls -ld ${DEST_BK_REP}/xenolinux-sparse | sed -e 's!^.*xenolinux-\([0-9.]\+\)-sparse!\1!'`
+LINUX_VER=`( /bin/ls -ld ${DEST_BK_REP}/xenolinux-sparse || /bin/ls -ld xenolinux-*-sparse ) 2>/dev/null | sed -e 's!^.*xenolinux-\([0-9.]\+\)-sparse!\1!'`
 
 # copy in the master Linux tree for this kernel
 if [ ! -d linux-${LINUX_VER} ]